<?php
/**
 * @version		$Id: banners.php 17071 2010-05-15 08:03:01Z chdemko $
 * @copyright	Copyright (C) 2005 - 2010 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

/**
 * @package		Joomla.Administrator
 * @subpackage	com_banners
 */
class AjaxWhoisHelper {
	
	public static function version() { 
		$version   = array();
		$version[] = "Pro ";
		$version[] = "1.0";
		return $version;
	}
	
	/**
	 * Configure the Linkbar.
	 *
	 * @param	string	The name of the active view.
	 */
	public static function addSubmenu($vName)
	{
		JSubMenuHelper::addEntry(
			JText::_('COM_AJAXWHOIS_SUBMENU_CONTROL_PANEL'),
			'index.php?option=com_ajaxwhois&view=ajaxwhois',
			$vName == 'ajaxwhois'
		);
		JSubMenuHelper::addEntry(
			JText::_('COM_AJAXWHOIS_SUBMENU_COMMON_SETTINGS'),
			'index.php?option=com_ajaxwhois&view=settings',
			$vName == 'settings'
		);

		JSubMenuHelper::addEntry(
			JText::_('COM_AJAXWHOIS_SUBMENU_AJAX_WHOIS_CONFIG'),
			'index.php?option=com_ajaxwhois&view=configs',
			$vName == 'config'
		);
		
		JSubMenuHelper::addEntry(
			JText::_('COM_AJAXWHOIS_SUBMENU_EXTENSIONS'),
			'index.php?option=com_ajaxwhois&view=extensions',
			$vName == 'extensions'
		);
		
		JSubMenuHelper::addEntry(
			JText::_('COM_AJAXWHOIS_SUBMENU_REG_LINKS'),
			'index.php?option=com_ajaxwhois&view=links',
			$vName == 'links'
		);
		
		JSubMenuHelper::addEntry(
			JText::_('COM_AJAXWHOIS_SUBMENU_DOMAINS'),
			'index.php?option=com_ajaxwhois&view=domains',
			$vName == 'domains'
		);
		
		JSubMenuHelper::addEntry(
			JText::_('COM_AJAXWHOIS_SUBMENU_INVOICES'),
			'index.php?option=com_ajaxwhois&view=invoices',
			$vName == 'invoices'
		);
	}
	
}
